# 使用 json.dumps() 方法将该python字典对象转换为json格式的字符串

# python 字典对象
data = {
    "name": "John Smith",
    "age": 30,
    "city": "New York",
    "languages": ["English", "Spanish", "French"],
    "isMarried": True,
    "education": {
        "degree": "Master's Degree",
        "school": "New York University"
    }
}

# 代码
import json

json_str = json.dumps(data)

# 输出转换后的json字符串
print(json_str)